<?php 
defined('_JEXEC') or die('Restricted access');
JHTML::_('behavior.tooltip'); ?>

<script type="text/javascript">
	Joomla.submitbutton = function(task)
	{
		if (task == 'phocagalleryt.cancel' || document.formvalidator.isValid(document.id('phocagalleryt-form'))) {
			Joomla.submitform(task, document.getElementById('phocagalleryt-form'));
		}
		else {
			alert('<?php echo $this->escape(JText::_('JGLOBAL_VALIDATION_FORM_FAILED'));?>');
		}
	}
</script>

<form enctype="multipart/form-data" action="index.php" method="post" name="adminForm" id="phocagalleryt-form" class="form-validate">

<?php 
if ($this->require_ftp) {
	echo PhocaGalleryFileUpload::renderFTPaccess();
} 
?>
<table class="adminform" border="0">
<?php if ($this->theme_name != '') { ?>
	<tr>
		<td colspan="3"><?php echo JText::_( 'COM_PHOCAGALLERY_CURRENT_THEME' ); ?> : <?php echo $this->theme_name; ?></td>
	</tr>
	<tr>
		<td colspan="3">&nbsp;</td>
	</tr>
<?php
}
?>
	<?php /*
	<tr>
		<td width="5"><input type="checkbox" name="theme_component" value=""  /></td>
		<td colspan="2"><?php echo JText::_( 'COM_PHOCAGALLERY_APPLY_COMPONENT' ); ?></td>
	</tr>
	
	<tr>
		<td width="5"><input type="checkbox" name="theme_categories" value="" /></td>
		<td colspan="2"><?php echo JText::_( 'COM_PHOCAGALLERY_APPLY_CATEGORIES' ); ?></td>
	</tr>
	<tr>
		<td width="5"><input type="checkbox" name="theme_category" value="" /></td>
		<td colspan="2"><?php echo JText::_( 'COM_PHOCAGALLERY_APPLY_CATEGORY' ); ?></td>
	</tr>
	*/ ?>
	<tr>
		<td colspan="3">&nbsp;</td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td colspan="2"><b><?php echo JText::_( 'COM_PHOCAGALLERY_UPLOAD_THEME_PACKAGE_FILE' ); ?></b></td>
	</tr>
	<tr>
		<td>&nbsp;</td>
		<td width="120">
			<label for="install_package"><?php echo JText::_( 'COM_PHOCAGALLERY_UPLOAD_FILE' ); ?>:</label>
		</td>
		<td>
			
			<input type="file" id="sfile-upload" class="input" name="Filedata" size="57" />
			<?php /* <input class="button" type="button" value="<?php echo JText::_( 'COM_PHOCAGALLERY_UPLOAD_FILE' ); ?> &amp; <?php echo JText::_( 'COM_PHOCAGALLERY_INSTALL' ); ?>" onclick="submitbutton()" /> */ ?>
			
			<button onclick="submitbutton()" class="btn btn-primary" id="upload-submit"><i class="icon-upload icon-white"></i> <?php echo JText::_( 'COM_PHOCAGALLERY_UPLOAD_FILE' ); ?> &amp; <?php echo JText::_( 'COM_PHOCAGALLERY_INSTALL' ); ?></button>

		</td>
	</tr>
	<tr>
		<td colspan="3">&nbsp;</td>
	</tr>
	</table>

	
<input type="hidden" name="type" value="" />
<input type="hidden" name="option" value="com_phocagallery" />
<input type="hidden" name="task" value="phocagalleryt.themeinstall" />
<?php echo JHTML::_( 'form.token' ); ?>
</form>

<?php
echo '<h4>'.JText::_('COM_PHOCAGALLERY_EDIT_CSS_FILES'). '</h4>';
echo '<ul class="nav nav-tabs nav-stacked"><li><a href="index.php?option=com_phocagallery&view=phocagalleryefs"><i class="icon-edit"></i> '.JText::_('COM_PHOCAGALLERY_EDIT_CSS_FILES'). '</a></li></ul>';
?>

<p>&nbsp;</p><div class="btn-group"><a class="btn btn-large btn-primary" href="http://www.phoca.cz/themes/" target="_blank"><i class="icon-grid-view-2 icon-white"></i>&nbsp;&nbsp;<?php echo JText::_('COM_PHOCAGALLERY_NEW_THEME_DOWNLOAD'); ?></a></div>

